package com.theatre.userservice.model.dto;

import com.theatre.userservice.model.entity.Shop;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
public class ShopDTO {

    private Long id;
    private String name;
    private String address;
    private String phone;
    private String email;
    private String licenseFile;

    public Shop toEntity() {
        Shop shop = new Shop();
        shop.setId(this.getId());
        shop.setName(this.getName());
        shop.setAddress(this.getAddress());
        shop.setPhone(this.getPhone());
        shop.setEmail(this.getEmail());
        shop.setLicenseFile(this.getLicenseFile());
        return shop;
    }
}